
;; 去掉欢迎界面
(setq inhibit-splash-screen t)
;;更改光标模式
(setq-default cursor-type 'bar)

;;窗口最大化
(setq  initial-frame-alist (quote ((fullscreen . maximized))))

;; 高亮当前行
(global-hl-line-mode t)

(setq frame-title-format
      `((buffer-file-name "%f" "%b")
        ,(format " - GNU Emacs %s" emacs-version)))

;;doom-themes 主题
(use-package doom-themes
  ;; :ensure t
  :init
  (if (display-graphic-p)
      (load-theme 'doom-solarized-light t)
      (load-theme 'doom-tomorrow-night t)))

(set-face-attribute 'default nil :height 150)

;; valign 表格像素对其
(use-package valign
  :ensure t
  :hook ((markdown-mode org-mode) . valign-mode)
)

;;配合doom-themes的基于doom emacs的增强
(use-package doom-modeline
  :ensure t
  :init
  (setq doom-modeline-minor-modes t)
  :custom-face
  (mode-line ((t (:height 0.95))))
  (mode-line-inactive ((t (:height 0.95))))
  :hook (after-init . doom-modeline-mode)
)

;;换行
(use-package visual-fill-column
  :ensure t
  :init
  ;; Configure fill width
  (setq visual-fill-column-width 110
      visual-fill-column-center-text t))

(provide 'init-ui)